﻿using System;
using System.Collections.Generic;

namespace Eneta.Portal.Common.Dto
{
    /// <summary>
    /// Class for announcements. Announcement is inherited from NewItemDto.
    /// </summary>
    public class AnnouncementDto : NewsItemDto
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="AnnouncementDto"/> class.
        /// </summary>
        public AnnouncementDto()
        {
            Companies = new List<CompanyDto>();
        }

        /// <summary>
        /// Gets or sets the list of companies that are related to announcement.
        /// </summary>
        public IList<CompanyDto> Companies { get; internal set; }

        public override string DisplayUrl
        {
            get
            {
                return "/uudised/teated/Lehed/" + FileName;
            }
        }

        public override DateTime PublishDate
        {
            get
            {
                return Created;
            }
            set
            {
                ;
            }
        }
    }
}